package cn.itlaobing.eshop.service;

import cn.itlaobing.eshop.dao.GoodsDao;
import cn.itlaobing.eshop.entity.GoodsDTO;
import cn.itlaobing.eshop.exception.BusinessExceeption;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by Administrator on 2017/11/14.
 */
public class GoodsService {
    private GoodsDao gd=new GoodsDao();
    public List<GoodsDTO> queryHotGoods()throws BusinessExceeption{
        List<GoodsDTO> list=null;
        try {
            list=gd.queryHotGoods();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return list;
    }
}
